Optimal. Leaf size=59 \[ A \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}-\sqrt {a} A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {457, 81, 52, 65,
214} \begin {gather*} A \sqrt {a+b x^2}-\sqrt {a} A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )+\frac {B \left (a+b x^2\right )^{3/2}}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{x} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\sqrt {a+b x} (A+B x)}{x} \, dx,x,x^2\right )\\ &=\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {1}{2} A \text {Subst}\left (\int \frac {\sqrt {a+b x}}{x} \, dx,x,x^2\right )\\ &=A \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {1}{2} (a A) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,x^2\right )\\ &=A \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {(a A) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{b}\\ &=A \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}-\sqrt {a} A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 59, normalized size = 1.00 \begin {gather*} \frac {\sqrt {a+b x^2} \left (3 A b+a B+b B x^2\right )}{3 b}-\sqrt {a} A \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 57, normalized size = 0.97
method | result | size |
default | \(\frac {B \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{3 b}+A \left (\sqrt {b \,x^{2}+a}-\sqrt {a}\, \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )\right )\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 45, normalized size = 0.76 \begin {gather*} -A \sqrt {a} \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right ) + \sqrt {b x^{2} + a} A + \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} B}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.78, size = 123, normalized size = 2.08 \begin {gather*} \left [\frac {3 \, A \sqrt {a} b \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) + 2 \, {\left (B b x^{2} + B a + 3 \, A b\right )} \sqrt {b x^{2} + a}}{6 \, b}, \frac {3 \, A \sqrt {-a} b \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) + {\left (B b x^{2} + B a + 3 \, A b\right )} \sqrt {b x^{2} + a}}{3 \, b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 10.93, size = 76, normalized size = 1.29 \begin {gather*} - \frac {A \left (- \frac {2 a \operatorname {atan}{\left (\frac {\sqrt {a + b x^{2}}}{\sqrt {- a}} \right )}}{\sqrt {- a}} - 2 \sqrt {a + b x^{2}}\right )}{2} - \frac {B \left (\begin {cases} - \sqrt {a} x^{2} & \text {for}\: b = 0 \\- \frac {2 \left (a + b x^{2}\right )^{\frac {3}{2}}}{3 b} & \text {otherwise} \end {cases}\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.61, size = 60, normalized size = 1.02 \begin {gather*} \frac {A a \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} + \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} B b^{2} + 3 \, \sqrt {b x^{2} + a} A b^{3}}{3 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.42, size = 47, normalized size = 0.80 \begin {gather*} A\,\sqrt {b\,x^2+a}+\frac {B\,{\left (b\,x^2+a\right )}^{3/2}}{3\,b}-A\,\sqrt {a}\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________